Leat\Domain\Services\GiftcardCouponService D

Total Complexity 149
Dependencies 17
Dependents 1
Total lines 1,392
Lines of code 842
Logical lines of code 424
Comment lines 252
Methods 27
Properties 5

Methods 27

Method Rating Maintainability Complexity Lines of code
process_giftcard_refund()
B
32 15 117
update_giftcard_balance_after_order()
B
34 15 105
maybe_create_giftcard_coupon_on_get_data()
A
41 9 59
validate_giftcard()
A
40 8 65
maybe_create_giftcard_coupon_before_apply()
A
48 9 34
validate_giftcard_coupon_on_store_api()
A
45 8 45
add_giftcard_detected_note()
A
50 8 29
show_giftcard_notices_on_cart_update()
A
52 8 24
maybe_create_giftcard_coupon_from_code()
S
52 7 25
maybe_show_giftcard_success_message()
S
55 7 19
create_giftcard_coupon()
S
46 5 42
handle_giftcard_coupon_refund()
S
49 5 32
save_giftcard_coupon_meta_box()
S
60 6 14
filter_coupon_list_by_giftcard()
S
59 6 13
handle_giftcard_coupon_refund_without_refund_id()
S
52 4 27
add_giftcard_detection_notes_to_order()
S
57 4 19
render_giftcard_coupon_meta_box()
S
46 2 45
init()
S
48 3 29
render_giftcard_coupon_column()
S
61 3 12
add_giftcard_filter_to_coupon_list()
S
60 3 12
check_giftcard_balance()
S
57 2 17
handle_giftcard_coupon_refund_by_status()
S
58 2 16
add_giftcard_coupon_column()
S
63 3 10
validate_giftcard_coupon()
S
65 3 10
handle_giftcard_coupon_refund_by_status_change()
S
74 2 5
register_giftcard_coupon_meta_box()
S
65 1 10
__construct()
S
68 1 7